﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Communication.Udp;

namespace Test.TestCommunication { 
    /// <summary>
    /// 测试Udp
    /// </summary> 
    class TestUdp {
        /// <summary>
        /// 启动测试
        /// </summary>
        public void Startup()
        {
            AsyncUdpServer aus = new AsyncUdpServer(9708);
            AsyncUdpProMsg proMsg = new AsyncUdpProMsg();
            aus.StartServer();
            aus.ReceiveMsg();
            aus.receviceMsgEvent += proMsg.ProReceiveMsg;

            //AsyncUdpServer aus = UdpGlobal.manager.GetUdpServer(9708);
        }
    }
}
